package cn.mesmile.design.decorator;

/**
 * @author zb
 * @version 1.0
 * @date 2020/11/21 10:51
 * @description
 */
public class SuonaBikeDecorator extends BikeDecorator {

    private String description = "> 增加一个喇叭";

    private Bike bike;

    public SuonaBikeDecorator(Bike bike) {
        this.bike = bike;
    }

    @Override
    public String getDescription() {
        return bike.getDescription() + ", " + description;
    }

    /**
     *  150 的喇叭
     * @return
     */
    @Override
    public int getPrice() {
        return bike.getPrice() + 150;
    }


}
